﻿<MMarkdown @ref="Ref" BeforeAllUpload="HandleUploadAsync">
</MMarkdown>

@code {
    [Inject]
    private IJSRuntime JS { get; set; }
    private MMarkdown Ref { get; set; }

    private async Task HandleUploadAsync()
    {
        //Please cancel this comment
        //await JS.InvokeVoidAsync("demo.uploadFile", Ref.Ref, 0);
    }
}